export const setMarkerStyle = (src) => {
  const icon = new ol.style.Style({
    /**{olx.style.IconOptions}类型*/
    image: new ol.style.Icon({
      //图标的大小
      anchor: [0.5, 200],
      anchorOrigin: 'top-right',
      anchorXUnits: 'fraction',
      anchorYUnits: 'pixels',
      offsetOrigin: 'top-right',
      offset: [0, 0],
      //图标缩放比例
      scale: 0.2,
      //透明度
      opacity: 1,
      //图标的url
      src,    
    }),
  });
  return icon;
};
